#ifndef APPENDER_H_
#define APPENDER_H_

#include "types.h"

class Appender {
public:
	virtual void log (int level, String message, ...) = 0;
};

class ConsoleAppender : Appender {
public:
	ConsoleAppender ();

	virtual void log (int level, String message, ...);
};

class TestAppender : public Appender {
private:
	String lastMessage;
public:
	TestAppender ();

	virtual void log (int level, String message, ...);
	String getLastMessage ();
};

#endif /* APPENDER_H_ */
